//
//  Comman.swift
//  SinaWeiBo20
//
//  Created by tarena on 16/3/19.
//  Copyright © 2016年 tarena. All rights reserved.
//

import UIKit

//应用程序相关的信息
let appid = "2910864654"
let appSecret = "59525787553688e5503cc26132b5030d"
let redirect_uri = "http://open.weibo.com/"


let themeColor = UIColor.orangeColor()

//屏幕的尺寸信息

let screenH = UIScreen.mainScreen().bounds.size.height
let screenW = UIScreen.mainScreen().bounds.size.width

//定义通知相关的字段
let AppSwitchRootViewController = "AppSwitchRootViewController"

//微博首页的基本布局信息
let StatusCellMarigin: CGFloat = 12
let StatusCellHeadImageWidth: CGFloat = 35


/// 输出日志
///
/// - parameter message:  日志消息
/// - parameter logError: 错误标记，默认是 false，如果是 true，发布时仍然会输出
/// - parameter file:     文件名
/// - parameter method:   方法名
/// - parameter line:     代码行数
func printLog<T>(message: T,
    logError: Bool = false,
    file: String = __FILE__,
    method: String = __FUNCTION__,
    line: Int = __LINE__)
{
    if logError {
        print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
    } else {
        #if DEBUG
            print("\((file as NSString).lastPathComponent)[\(line)], \(method): \(message)")
        #endif
    }
}



